import layoutHeaderAside from "@/layout/header-aside";

// 由于懒加载页面太多的话会造成webpack热更新太慢，所以开发环境不使用懒加载，只有生产环境使用懒加载
const _import = require("@/libs/util.import." + process.env.NODE_ENV);

const meta = { auth: true, cache: true };

export default {
  path: "/:menuCode/:menuId/fund",
  name: "fund-components",
  meta: { ...meta, level: 0 },
  component: layoutHeaderAside,
  children: [
    {
      path: "otherPay/accountIncomeExpenditureDetail",
      name: "fund-report-accountIncomeExpenditureDetail",
      component: _import("fund/report/accountIncomeExpenditureDetail.vue"),
      meta: { ...meta, title: "账户收支明细" }
    },
    {
      path: "ticket/billInterestBalanceDetail",
      name: "fund-report-billInterestBalanceDetail",
      component: _import("fund/report/billInterestBalanceDetail.vue"),
      meta: { ...meta, title: "收票贴息计提" }
    },
    {
      path: "ticket/billCirculationQuery",
      name: "fund-report-billCirculationQuery",
      component: _import("fund/report/billCirculationQuery.vue"),
      meta: { ...meta, title: "票据流转查询" }
    },
    {
      path: "ticket/billDepositInterestDetail",
      name: "fund-report-billDepositInterestDetail",
      component: _import("fund/report/billDepositInterestDetail.vue"),
      meta: { ...meta, title: "出票保证金计息表" }
    },
    {
      path: "ticket/billAvailableBalanceDetail",
      name: "fund-report-billAvailableBalanceDetail",
      component: _import("fund/report/billAvailableBalanceDetail.vue"),
      meta: { ...meta, title: "票据余额" }
    },
    {
      path: "accountManager/myAccount",
      name: "fund-account-manager-my-account",
      component: _import("fund/accountManager/myAccount.vue"),
      meta: { ...meta, title: "我的账户" }
    },
    {
      path: "accountManager/bankSearch",
      name: "fund-account-manager-bank-search",
      component: _import("fund/accountManager/bankSearch.vue"),
      meta: { ...meta, title: "开户行查询" }
    },
    {
      path: "accountManager/payPasswordSet",
      name: "fund-account-manager-pay-password-set",
      component: _import("fund/accountManager/payPasswordSet.vue"),
      meta: { ...meta, title: "支付密码设置" }
    },
    {
      path: "accountSearch/accountBalance",
      name: "fund-account-search-account-balance",
      component: _import("fund/accountSearch/accountBalance.vue"),
      meta: { ...meta, title: "账户余额" }
    },
    {
      path: "accountSearch/accountStatement",
      name: "fund-account-search-account-statement",
      component: _import("fund/accountSearch/accountStatement.vue"),
      meta: { ...meta, title: "账户流水" }
    },
    {
      path: "accountSearch/receiveStatement",
      name: "fund-account-search-receive-statement",
      component: _import("fund/accountSearch/receiveStatement.vue"),
      meta: { ...meta, title: "引收款流水" }
    },
    {
      path: "accountSearch/payStatement",
      name: "fund-account-search-pay-statement",
      component: _import("fund/accountSearch/payStatement.vue"),
      meta: { ...meta, title: "引付款流水" }
    },
    {
      path: "payApply/payApplyOrder",
      name: "fund-payApply-payApplyOrder",
      component: _import("fund/payApply/payApplyOrder.vue"),
      meta: { ...meta, title: "付款申请单" }
    },
    {
      path: "payApply/payApplyOrderAdd",
      name: "fund-payApply-payApplyOrder-add",
      component: _import("fund/payApply/payApplyOrderAdd.vue"),
      meta: { ...meta, title: "付款申请单-新增" }
    },
    {
      path: "payApply/payApplyOrderModify",
      name: "fund-payApply-payApplyOrder-modify",
      component: _import("fund/payApply/payApplyOrderModify.vue"),
      meta: { ...meta, title: "付款申请单-修改" }
    },
    {
      path: "payApply/payApplyOrderLook",
      name: "fund-payApply-payApplyOrder-look",
      component: _import("fund/payApply/payApplyOrderAdd.vue"),
      meta: { ...meta, title: "付款申请单-查看" }
    },
    {
      path: "payApply/payApplyOrderLook/:id/:orderNo/:type",
      name: "fund-payApply-payApplyOrder-look-param",
      component: _import("fund/payApply/payApplyOrderAddParam.vue"),
      meta: { ...meta, title: "付款申请单-查看" }
    },
    {
      path: "payApply/payApplyOrderDetails",
      name: "fund-payApply-payApplyOrderDetails",
      component: _import("fund/payApply/payApplyOrderDetails.vue"),
      meta: { ...meta, title: "付款申请明细" }
    },
    {
      path: "payApply/returnApplyOrder",
      name: "fund-payApply-returnApplyOrder",
      component: _import("fund/payApply/returnApplyOrder.vue"),
      meta: { ...meta, title: "退款申请单" }
    },
    {
      path: "payApply/returnApplyOrderAdd",
      name: "fund-payApply-returnApplyOrder-add",
      component: _import("fund/payApply/returnApplyOrderAdd.vue"),
      meta: { ...meta, title: "退款申请单-新增" }
    },
    {
      path: "payApply/returnApplyOrderModify",
      name: "fund-payApply-returnApplyOrder-modify",
      component: _import("fund/payApply/returnApplyOrderAdd.vue"),
      meta: { ...meta, title: "退款申请单-修改" }
    },
    {
      path: "payApply/returnApplyOrderLook",
      name: "fund-payApply-returnApplyOrder-look",
      component: _import("fund/payApply/returnApplyOrderAdd.vue"),
      meta: { ...meta, title: "退款申请单-查看" }
    },
    {
      path: "receiveManagement/receive",
      name: "fund-receiveManagement-receive",
      component: _import("fund/receiveManagement/receive.vue"),
      meta: { ...meta, title: "应收收款" }
    },
    {
      path: "receiveManagement/receiptDetail",
      name: "fund-receiveManagement-receiptDetail",
      component: _import("fund/receiveManagement/receiptDetail.vue"),
      meta: { ...meta, title: "收款明细" }
    },
    {
      path: "receiveManagement/receiptTotal",
      name: "fund-receiveManagement-receiptTotal",
      component: _import("fund/receiveManagement/receiptTotal.vue"),
      meta: { ...meta, title: "收款汇总" }
    },
    {
      path: "receiveManagement/receiveAdd",
      name: "fund-receiveManagement-receive-add",
      component: _import("fund/receiveManagement/add.vue"),
      meta: { ...meta, title: "应收收款-新增" }
    },
    {
      path: "receiveManagement/receiveCopy",
      name: "fund-receiveManagement-receive-copy",
      component: _import("fund/receiveManagement/copy.vue"),
      meta: { ...meta, title: "应收收款-复制" }
    },
    {
      path: "receiveManagement/receiveModify",
      name: "fund-receiveManagement-receive-modify",
      component: _import("fund/receiveManagement/modify.vue"),
      meta: { ...meta, title: "应收收款-修改" }
    },
    {
      path: "receiveManagement/receiveLook/:orderNo",
      name: "fund-receiveManagement-receive-look",
      component: _import("fund/receiveManagement/look.vue"),
      meta: { ...meta, title: "应收收款-查看" }
    },
    {
      path: "receiveManagement/return",
      name: "fund-receiveManagement-return",
      component: _import("fund/receiveManagement/return.vue"),
      meta: { ...meta, title: "应收退款" }
    },
    {
      path: "receiveManagement/returnAdd",
      name: "fund-receiveManagement-return-add",
      component: _import("fund/receiveManagement/returnAdd.vue"),
      meta: { ...meta, title: "应收退款-新增" }
    },
    {
      path: "receiveManagement/returnModify",
      name: "fund-receiveManagement-return-modify",
      component: _import("fund/receiveManagement/returnAdd.vue"),
      meta: { ...meta, title: "应收退款-修改" }
    },
    {
      path: "receiveManagement/returnLook",
      name: "fund-receiveManagement-return-look",
      component: _import("fund/receiveManagement/returnAdd.vue"),
      meta: { ...meta, title: "应收退款-查看" }
    },
    {
      path: "payManagement/receivePay",
      name: "fund-payManagement-receivePay",
      component: _import("fund/payManagement/receivePay.vue"),
      meta: { ...meta, title: "应付付款" }
    },
    {
      path: "payManagement/receivePayAdd",
      name: "fund-payManagement-receivePay-add",
      component: _import("fund/payManagement/receivePayAdd.vue"),
      meta: { ...meta, title: "应付付款-新增" }
    },
    {
      path: "payManagement/receivePayModify",
      name: "fund-payManagement-receivePay-modify",
      component: _import("fund/payManagement/receivePayAdd.vue"),
      meta: { ...meta, title: "应付付款-修改" }
    },
    {
      path: "payManagement/receivePayCopy",
      name: "fund-payManagement-receivePay-copy",
      component: _import("fund/payManagement/receivePayAdd.vue"),
      meta: { ...meta, title: "应付付款-复制" }
    },
    {
      path: "payManagement/receivePayLook/:orderNo",
      name: "fund-payManagement-receivePay-look",
      component: _import("fund/payManagement/receivePayAdd.vue"),
      meta: { ...meta, title: "应付付款-查看" }
    },
    {
      path: "payManagement/returnPay",
      name: "fund-payManagement-returnPay",
      component: _import("fund/payManagement/returnPay.vue"),
      meta: { ...meta, title: "应付退款" }
    },
    {
      path: "payManagement/returnPayAdd",
      name: "fund-payManagement-returnPay-add",
      component: _import("fund/payManagement/returnPayAdd.vue"),
      meta: { ...meta, title: "应付退款-新增" }
    },
    {
      path: "payManagement/returnPayModify",
      name: "fund-payManagement-returnPay-modify",
      component: _import("fund/payManagement/returnPayAdd.vue"),
      meta: { ...meta, title: "应付退款-修改" }
    },
    {
      path: "payManagement/returnPayCopy",
      name: "fund-payManagement-returnPay-copy",
      component: _import("fund/payManagement/returnPayAdd.vue"),
      meta: { ...meta, title: "应付退款-复制" }
    },
    {
      path: "payManagement/returnPayLook/:orderNo",
      name: "fund-payManagement-returnPay-look",
      component: _import("fund/payManagement/returnPayAdd.vue"),
      meta: { ...meta, title: "应付退款-查看" }
    },
    {
      path: "payManagement/paymentDetail",
      name: "fund-payManagement-paymentDetail",
      component: _import("fund/payManagement/paymentDetail.vue"),
      meta: { ...meta, title: "付款明细" }
    },
    {
      path: "payManagement/paymentTotal",
      name: "fund-payManagement-paymentTotal",
      component: _import("fund/payManagement/paymentTotal.vue"),
      meta: { ...meta, title: "付款汇总" }
    },
    {
      path: "otherPay/account",
      name: "fund-otherPay-account",
      component: _import("fund/otherPay/account.vue"),
      meta: { ...meta, title: "账户互转" }
    },
    {
      path: "otherPay/accountAdd",
      name: "fund-otherPay-account-add",
      component: _import("fund/otherPay/accountAdd.vue"),
      meta: { ...meta, title: "账户互转-新增" }
    },
    {
      path: "otherPay/accountAdd/:params",
      name: "fund-otherPay-account-add-params",
      component: _import("fund/otherPay/accountAddParams.vue"),
      meta: { ...meta, title: "账户互转-新增" }
    },
    {
      path: "otherPay/accountModify",
      name: "fund-otherPay-account-modify",
      component: _import("fund/otherPay/accountAdd.vue"),
      meta: { ...meta, title: "账户互转-修改" }
    },
    {
      path: "otherPay/accountCopy",
      name: "fund-otherPay-account-copy",
      component: _import("fund/otherPay/accountAdd.vue"),
      meta: { ...meta, title: "账户互转-复制" }
    },
    {
      path: "otherPay/accountLook",
      name: "fund-otherPay-account-look",
      component: _import("fund/otherPay/accountAdd.vue"),
      meta: { ...meta, title: "账户互转-查看" }
    },
    {
      path: "otherPay/intercourse",
      name: "fund-otherPay-intercourse",
      component: _import("fund/otherPay/intercourse.vue"),
      meta: { ...meta, title: "往来收付" }
    },
    {
      path: "otherPay/intercourseAdd",
      name: "fund-otherPay-intercourse-add",
      component: _import("fund/otherPay/intercourseAdd.vue"),
      meta: { ...meta, title: "往来收付-新增" }
    },
    {
      path: "otherPay/intercourseModify",
      name: "fund-otherPay-intercourse-modify",
      component: _import("fund/otherPay/intercourseAdd.vue"),
      meta: { ...meta, title: "往来收付-修改" }
    },
    {
      path: "otherPay/intercourseCopy",
      name: "fund-otherPay-intercourse-copy",
      component: _import("fund/otherPay/intercourseAdd.vue"),
      meta: { ...meta, title: "往来收付-复制" }
    },
    {
      path: "otherPay/intercourseLook",
      name: "fund-otherPay-intercourse-look",
      component: _import("fund/otherPay/intercourseAdd.vue"),
      meta: { ...meta, title: "往来收付-查看" }
    },
    {
      path: "otherPay/banks",
      name: "fund-otherPay-banks",
      component: _import("fund/otherPay/banks.vue"),
      meta: { ...meta, title: "银行收付" }
    },
    {
      path: "otherPay/banksAdd",
      name: "fund-otherPay-banks-add",
      component: _import("fund/otherPay/banksAdd.vue"),
      meta: { ...meta, title: "银行收付-新增" }
    },
    {
      path: "otherPay/banksModify",
      name: "fund-otherPay-banks-modify",
      component: _import("fund/otherPay/banksAdd.vue"),
      meta: { ...meta, title: "银行收付-修改" }
    },
    {
      path: "otherPay/banksCopy",
      name: "fund-otherPay-banks-copy",
      component: _import("fund/otherPay/banksAdd.vue"),
      meta: { ...meta, title: "银行收付-复制" }
    },
    {
      path: "otherPay/banksLook",
      name: "fund-otherPay-banks-look",
      component: _import("fund/otherPay/banksAdd.vue"),
      meta: { ...meta, title: "银行收付-查看" }
    },

    {
      path: "ticket/issue",
      name: "fund-ticket-issue",
      component: _import("fund/ticket/issue.vue"),
      meta: { ...meta, title: "出票登记" }
    },
    {
      path: "ticket/issue/add",
      name: "fund-issue-form-add",
      component: _import("fund/ticket/issueAdd.vue"),
      meta: { ...meta, title: "出票登记-新增" }
    },
    {
      path: "ticket/issue/modify/:modifyId",
      name: "fund-issue-form-modify",
      component: _import("fund/ticket/issueModify.vue"),
      meta: { ...meta, title: "出票登记-修改" }
    },
    {
      path: "ticket/issue/show/:showId",
      name: "fund-issue-form-show",
      component: _import("fund/ticket/issueShow.vue"),
      meta: { ...meta, title: "出票登记-查看" }
    },
    {
      path: "ticket/inside",
      name: "fund-ticket-inside",
      component: _import("fund/ticket/inside.vue"),
      meta: { ...meta, title: "内部待收票" }
    },
    {
      path: "ticket/invoice",
      name: "fund-ticket-invoice",
      component: _import("fund/ticket/invoice.vue"),
      meta: { ...meta, title: "收票登记" }
    },
    {
      path: "ticket/invoice/add",
      name: "fund-invoice-form-add",
      component: _import("fund/ticket/invoiceAdd.vue"),
      meta: { ...meta, title: "收票登记-新增" }
    },
    {
      path: "ticket/invoice/modify/:modifyId",
      name: "fund-invoice-form-modify",
      component: _import("fund/ticket/invoiceModify.vue"),
      meta: { ...meta, title: "收票登记-修改" }
    },
    {
      path: "ticket/invoice/show/:showId",
      name: "fund-invoice-form-show",
      component: _import("fund/ticket/invoiceShow.vue"),
      meta: { ...meta, title: "收票登记-查看" }
    },
    {
      path: "ticket/rollout",
      name: "fund-ticket-rollout",
      component: _import("fund/ticket/rollout.vue"),
      meta: { ...meta, title: "票据转出" }
    },
    {
      path: "ticket/rollout/add",
      name: "fund-rollout-form-add",
      component: _import("fund/ticket/rolloutAdd.vue"),
      meta: { ...meta, title: "票据转出-新增" }
    },
    {
      path: "ticket/rollout/modify/:modifyId",
      name: "fund-rollout-form-modify",
      component: _import("fund/ticket/rolloutModify.vue"),
      meta: { ...meta, title: "票据转出-修改" }
    },
    {
      path: "ticket/rollout/show/:showId",
      name: "fund-rollout-form-show",
      component: _import("fund/ticket/rolloutShow.vue"),
      meta: { ...meta, title: "票据转出-查看" }
    },

    {
      path: "hanfubao/accountOverview",
      name: "hanfubao-account-overview",
      component: _import("fund/hanfubao/accountOverview.vue"),
      meta: { ...meta, title: "账户总览" }
    },
    {
      path: "hanfubao/accountOverviewFlink",
      name: "hanfubao-account-overview-flink",
      component: _import("fund/hanfubao/accountOverviewFlink.vue"),
      meta: { ...meta, title: "账户总览(大数据)" }
    },
    {
      path: "hanfubao/accountManager",
      name: "hanfubao-account-managers",
      component: _import("fund/hanfubao/accountManager.vue"),
      meta: { ...meta, title: "账户详情" }
    },

    {
      path: "hanfubao/securityFundDetail",
      name: "hanfubao-security-fund-detail",
      component: _import("fund/hanfubao/securityFundDetail.vue"),
      meta: { ...meta, title: "保证金退款详情" }
    },
    {
      path: "hanfubao/accountManagerDetail",
      name: "hanfubao-account-manager-detail",
      component: _import("fund/hanfubao/accountManagerDetail.vue"),
      meta: { ...meta, title: "账户支付流水" }
    },
    {
      path: "hanfubao/applyWithdrawManager",
      name: "hanfubao-apply-withdraw-manager",
      component: _import("fund/hanfubao/applyWithdrawManager.vue"),
      meta: { ...meta, title: "客户提现申请" }
    },
    {
      path: "hanfubao/ensureSet",
      name: "hanfubao-ensure-set",
      component: _import("fund/hanfubao/ensureSet.vue"),
      meta: { ...meta, title: "总呗额度设置" }
    },
    {
      path: "hanfubao/surePersonManager",
      name: "hanfubao-sure-person-manager",
      component: _import("fund/hanfubao/surePersonManager.vue"),
      meta: { ...meta, title: "客户金融账户确认人管理" }
    },
    {
      path: "hanfubao/finalPayment",
      name: "hanfubao-final-payment",
      component: _import("fund/hanfubao/finalPayment.vue"),
      meta: { ...meta, title: "订单结算尾款" }
    },
    {
      path: "hanfubao/interest",
      name: "hanfubao-interest-manager",
      component: _import("fund/hanfubao/interest.vue"),
      meta: { ...meta, title: "金融账户利息管理" }
    },
    {
      path: "hanfubao/accountInitManager",
      name: "hanfubao-account-init-manager",
      component: _import("fund/hanfubao/accountInitManager.vue"),
      meta: { ...meta, title: "账户初始化管理" }
    },
    {
      path: 'hanhubao/accrual',
      name: 'hanfubao-accrual',
      component: _import('fund/hanfubao/accrual.vue'),
      meta: { ...meta, title: '赊呗利息'}
    },
    {
      path: 'creditApply',
      name: 'creditApply',
      component: _import('fund/creditApply/index.vue'),
      meta: { ...meta, title: '赊呗申请'}
    },
    {
      path: 'creditApply/add',
      name: 'creditApply-add',
      component: _import('fund/creditApply/add.vue'),
      meta: { ...meta, title: '赊呗申请-新增'}
    },
    {
      path: 'creditApply/modify/:modifyId',
      name: 'creditApply-modify',
      component: _import('fund/creditApply/modify.vue'),
      meta: { ...meta, title: '赊呗申请-修改'}
    },
    {
      path: 'creditApply/show/:showId',
      name: 'creditApply-show',
      component: _import('fund/creditApply/show.vue'),
      meta: { ...meta, title: '赊呗申请-详情'}
    },
    {
      path: 'creditDetails',
      name: 'creditDetails',
      component: _import('fund/creditDetails/index.vue'),
      meta: { ...meta, title: '授信明细'}
    },
    {
      path: 'letterOfGuarantee',
      name: 'letterOfGuarantee',
      component: _import('fund/letterOfGuarantee/index.vue'),
      meta: { ...meta, title: '担保函刷脸'}
    },
  ]
};
